package com.joinlabs.mapper;

import java.math.BigDecimal;
import java.util.List;

import com.joinlabs.entity.Assess;

public interface AssessMapper {
    int deleteByPrimaryKey(Long assessId);

    int insert(Assess record);

    int insertSelective(Assess record);

    Assess selectByPrimaryKey(Long assessId);

    int updateByPrimaryKeySelective(Assess record);

    int updateByPrimaryKey(Assess record);
    

    //通过商品id找其评价
    List<Assess> selectBywaresid(BigDecimal waresId);
    
    //通过orderitem找评价
    Assess selectByorderItemid(BigDecimal orderItemid);
    
    //查找有多少条评价
    int selectByprocount(BigDecimal waresId);
}